package com.sxkf.template.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxkf.template.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxkf.template.entity.CommentLike;
import com.sxkf.template.vo.request.CommentVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-11-22 11:49:23
 */
public interface CommentService extends IService<Comment> {

    Page<Comment> myComment(Integer pageNo, Integer pageSize, Long userId);

    String likeById(CommentLike commentLike);

    Boolean isLike(String userId, String type, String commentId);

    Boolean addComment(CommentVo comment);

    Page<Comment> productComment(Integer pageNo, Integer pageSize, String orderId, Long userId);
}
